package com.casic.ops;

import com.casic.ops.configs.ApplicationContextUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author mianbin
 */
@SpringBootApplication
@MapperScan("com.casic.ops.dao")
public class OpsApiApplication {

    @Bean
    public ApplicationContextUtil applicationContextUtil(){
        return new ApplicationContextUtil();
    }

    public static void main(String[] args) {
        SpringApplication.run(OpsApiApplication.class, args);
    }

}
